package com.kgc.crowd.distributioncrowdcommon.api;

import com.kgc.crowd.distributioncrowdcommon.VO.MemberSignSuccessVO;
import com.kgc.crowd.distributioncrowdcommon.VO.MemberVO;
import com.kgc.crowd.distributioncrowdcommon.pojo.MemberLaunchInfoPO;
import com.kgc.crowd.distributioncrowdcommon.pojo.ResultEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("DISTRIBUTION-CROWD-MEMBER-MANAGER")
public interface MemberMangerRemoteService {
    @RequestMapping("/member/manager/send/code")
    public ResultEntity<String> sendCode(@RequestParam("phoneNum") String phoneNum);

    @RequestMapping("/member/manager/register")
    public ResultEntity<String> register(@RequestBody MemberVO memberVO);

    @RequestMapping("/member/manager/login")
    public ResultEntity<MemberSignSuccessVO> login(
            @RequestParam("loginAcct") String loginAcct,
            @RequestParam("userPswd") String userPswd);

    @RequestMapping("/member/manager/logout")
    public ResultEntity<String> logout(@RequestParam("token") String token);
    @RequestMapping("/member/manager/retrieve/member/launch/info/by/member/token")
    public ResultEntity<MemberLaunchInfoPO> retrieveMemberLaunchInfoByMemberToken(@RequestParam("token")String token);
}
